<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>5_对象相关的知识</title>
</head>

<body>
    <script>
        let a = 'name'
        const obj = {};
        obj[a] = 'tom';
        console.log(obj);
    </script>
</body>

</html>